<?php

namespace App\Events;

use App\Models\Cart;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class CartPriceChanged
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public Cart $cart;
    public array $priceChanges;

    /**
     * Create a new event instance.
     */
    public function __construct(Cart $cart, array $priceChanges)
    {
        $this->cart = $cart;
        $this->priceChanges = $priceChanges;
    }
}
